if __name__ == '__main__':
    my_tuple = ("a", "b", "c", "d", "e", "f", "g")
    print(my_tuple)

    my_tuple1 = ()
    my_tuple2 = tuple()
    print(my_tuple1)
    print(my_tuple2)

    print(my_tuple[0])
    # 实际访问的范围 左闭右开 区间
    print(my_tuple[1:4])

    # 修改元素不允许
    # my_tuple.append("h")
    # my_tuple.insert()
    # my_tuple[0] = 1

    # 对标识符重复赋值，将新的对象和 标识符 进行关联
    my_tuple = (1, 2, 3, 4, 5)
    print(my_tuple)

    result1 = my_tuple + my_tuple
    print(my_tuple)
    print(result1)

    # * 将内容重复3次
    result2 = my_tuple * 3
    print(result2)

    result3 = 3 * my_tuple
    print(result3)
